package top.shenluw.demo.querydsl;

import com.querydsl.core.types.dsl.Expressions;
import com.querydsl.core.types.dsl.NumberTemplate;

/**
 * @author Shenluw
 * 创建日期：2018/9/29 17:23
 */
public abstract class BitwiseExpressions {

	public static NumberTemplate<Integer> bitand(Object arg1, Object arg2) {
		return Expressions.numberTemplate(Integer.class, "function('bitand', {0}, {1})", arg1, arg2);
	}

	public static NumberTemplate<Integer> bitor(Object arg1, Object arg2) {
		return Expressions.numberTemplate(Integer.class, "function('bitor', {0}, {1})", arg1, arg2);
	}

	public static NumberTemplate<Integer> bitxor(Object arg1, Object arg2) {
		return Expressions.numberTemplate(Integer.class, "function('bitxor', {0}, {1})", arg1, arg2);
	}
}
